<?php /* Smarty version 2.6.20, created on 2016-07-22 14:37:29
         compiled from ./classes/index.php */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('block', 'classes', './classes/index.php', 5, false),array('block', 'rights', './classes/index.php', 24, false),array('modifier', 'default', './classes/index.php', 5, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "admin/top.php", 'smarty_include_vars' => array('subject' => 'products')));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "products/top.php", 'smarty_include_vars' => array('subject' => 'classes')));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<div id="content">
	<div id="tip">
    	<?php if (0): ?><span class="fr"><?php $this->_tag_stack[] = array('classes', array('parentid' => ((is_array($_tmp=@$this->_tpl_vars['segment']['1'])) ? $this->_run_mod_handler('default', true, $_tmp, 0) : smarty_modifier_default($_tmp, 0)),'order' => 'ordersn')); $_block_repeat=true;smarty_block_classes($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?> &gt; <a href="<?php echo $this->_tpl_vars['site_admin']; ?>
classes/<?php echo $this->_tpl_vars['classes']['id']; ?>
"><?php echo $this->_tpl_vars['classes']['title']; ?>
</a><?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_classes($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?></span>
    	位置: <a href="<?php echo $this->_tpl_vars['site_admin']; ?>
classes" onmouseover="classes_open(this, 'classes', '0')">根目录</a>
    	<?php unset($this->_sections['id']);
$this->_sections['id']['name'] = 'id';
$this->_sections['id']['loop'] = is_array($_loop=$this->_tpl_vars['paths']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['id']['show'] = true;
$this->_sections['id']['max'] = $this->_sections['id']['loop'];
$this->_sections['id']['step'] = 1;
$this->_sections['id']['start'] = $this->_sections['id']['step'] > 0 ? 0 : $this->_sections['id']['loop']-1;
if ($this->_sections['id']['show']) {
    $this->_sections['id']['total'] = $this->_sections['id']['loop'];
    if ($this->_sections['id']['total'] == 0)
        $this->_sections['id']['show'] = false;
} else
    $this->_sections['id']['total'] = 0;
if ($this->_sections['id']['show']):

            for ($this->_sections['id']['index'] = $this->_sections['id']['start'], $this->_sections['id']['iteration'] = 1;
                 $this->_sections['id']['iteration'] <= $this->_sections['id']['total'];
                 $this->_sections['id']['index'] += $this->_sections['id']['step'], $this->_sections['id']['iteration']++):
$this->_sections['id']['rownum'] = $this->_sections['id']['iteration'];
$this->_sections['id']['index_prev'] = $this->_sections['id']['index'] - $this->_sections['id']['step'];
$this->_sections['id']['index_next'] = $this->_sections['id']['index'] + $this->_sections['id']['step'];
$this->_sections['id']['first']      = ($this->_sections['id']['iteration'] == 1);
$this->_sections['id']['last']       = ($this->_sections['id']['iteration'] == $this->_sections['id']['total']);
?> &gt; <a href="<?php echo $this->_tpl_vars['site_admin']; ?>
classes/<?php echo $this->_tpl_vars['paths'][$this->_sections['id']['index']]['id']; ?>
" onmouseover="classes_open(this, 'classes', '<?php echo $this->_tpl_vars['paths'][$this->_sections['id']['index']]['id']; ?>
')"><?php echo $this->_tpl_vars['paths'][$this->_sections['id']['index']]['title']; ?>
</a><?php endfor; endif; ?><?php endif; ?>
	</div>
    
    <form method="post">
    <table width="100%" border="0" cellspacing="0" cellpadding="5" id="lister">
      <tr id="title">
        <td width="40">编号</td>
        <td width="60">顺序</td>
        <td>姓名</td>
        <td>&nbsp;</td>
      </tr>
      <?php $this->_tag_stack[] = array('classes', array('limit' => 100,'pager' => 'pager','parentid' => 0,'order' => 'ordersn')); $_block_repeat=true;smarty_block_classes($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>
      <tr id="content">
        <td><?php echo $this->_tpl_vars['classes']['id']; ?>
</td>
        <td><input name="ordersn[<?php echo $this->_tpl_vars['classes']['id']; ?>
]" type="text" value="<?php echo $this->_tpl_vars['classes']['ordersn']; ?>
" size="2" /></td>
        <td><a href="<?php echo $this->_tpl_vars['site_admin']; ?>
m=inventory&s=classes.php&uri=create&id=<?php echo $this->_tpl_vars['classes']['id']; ?>
"><?php echo $this->_tpl_vars['classes']['title']; ?>
</a></td>
        <td align="right">
			<?php $this->_tag_stack[] = array('rights', array('right' => 'classes_remove')); $_block_repeat=true;smarty_block_rights($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?><a href="<?php echo $this->_tpl_vars['site_admin']; ?>
m=inventory&s=classes.php&uri=remove&id=<?php echo $this->_tpl_vars['classes']['id']; ?>
" onclick="return confirm('删除产品目录同时删除子目录, 且数据不可恢复, 确定删除?')">删除</a><?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_rights($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?>
        	<?php $this->_tag_stack[] = array('rights', array('right' => 'classes_modify')); $_block_repeat=true;smarty_block_rights($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?><a href="<?php echo $this->_tpl_vars['site_admin']; ?>
m=inventory&s=classes.php&uri=modify&id=<?php echo $this->_tpl_vars['classes']['id']; ?>
">编辑</a><?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_rights($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?>
        </td>
      </tr>
      <?php $_from = $this->_tpl_vars['sub_class']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['item']):
?>
            <tr id="content">
        <td><?php echo $this->_tpl_vars['item']['id']; ?>
</td>
        <td><input name="ordersn[<?php echo $this->_tpl_vars['item']['id']; ?>
]" type="text" value="<?php echo $this->_tpl_vars['item']['ordersn']; ?>
" size="2" /></td>
        <td>|——<a href="<?php echo $this->_tpl_vars['site_admin']; ?>
m=inventory&s=classes.php&uri=create&id=<?php echo $this->_tpl_vars['item']['id']; ?>
"><?php echo $this->_tpl_vars['item']['title']; ?>
</a></td>
        <td align="right">
			<?php $this->_tag_stack[] = array('rights', array('right' => 'classes_remove')); $_block_repeat=true;smarty_block_rights($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?><a href="<?php echo $this->_tpl_vars['site_admin']; ?>
m=inventory&s=classes.php&uri=remove&id=<?php echo $this->_tpl_vars['item']['id']; ?>
" onclick="return confirm('删除产品目录同时删除子目录, 且数据不可恢复, 确定删除?')">删除</a><?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_rights($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?>
        	<?php $this->_tag_stack[] = array('rights', array('right' => 'classes_modify')); $_block_repeat=true;smarty_block_rights($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?><a href="<?php echo $this->_tpl_vars['site_admin']; ?>
m=inventory&s=classes.php&uri=modify&id=<?php echo $this->_tpl_vars['item']['id']; ?>
">编辑</a><?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_rights($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?>
        </td>
      </tr>
        <?php $_from = $this->_tpl_vars['sub_sub_class']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['sub_key'] => $this->_tpl_vars['sub_item']):
?>
            <tr id="content">
        <td><?php echo $this->_tpl_vars['sub_item']['id']; ?>
</td>
        <td><input name="ordersn[<?php echo $this->_tpl_vars['sub_item']['id']; ?>
]" type="text" value="<?php echo $this->_tpl_vars['sub_item']['ordersn']; ?>
" size="2" /></td>
        <td>|——<a href="<?php echo $this->_tpl_vars['site_admin']; ?>
m=inventory&s=classes.php&uri=create&id=<?php echo $this->_tpl_vars['sub_item']['id']; ?>
"><?php echo $this->_tpl_vars['sub_item']['title']; ?>
</a></td>
        <td align="right">
			<?php $this->_tag_stack[] = array('rights', array('right' => 'classes_remove')); $_block_repeat=true;smarty_block_rights($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?><a href="<?php echo $this->_tpl_vars['site_admin']; ?>
m=inventory&s=classes.php&uri=remove&id=<?php echo $this->_tpl_vars['sub_item']['id']; ?>
" onclick="return confirm('删除产品目录同时删除子目录, 且数据不可恢复, 确定删除?')">删除</a><?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_rights($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?>
        	<?php $this->_tag_stack[] = array('rights', array('right' => 'classes_modify')); $_block_repeat=true;smarty_block_rights($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?><a href="<?php echo $this->_tpl_vars['site_admin']; ?>
m=inventory&s=classes.php&uri=modify&id=<?php echo $this->_tpl_vars['sub_item']['id']; ?>
">编辑</a><?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_rights($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?>
        </td>
      </tr>
      <?php endforeach; endif; unset($_from); ?>
      
      <?php endforeach; endif; unset($_from); ?>
      <?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_classes($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?>
      <?php if ($this->_tpl_vars['pager']->rows == 0): ?>
  	  <tr id="content">
        <td colspan="20">&nbsp;</td>
      </tr>
      <?php endif; ?>
    </table>

    <?php $this->_tag_stack[] = array('rights', array('right' => 'classes_modify')); $_block_repeat=true;smarty_block_rights($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>
    <div class="fr mt10">
    <input type="submit" value="更新显示顺序" class="btn" />
    <input name="action" type="hidden" id="action" value="index" />
    </div>
    <?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_rights($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?>
    </form>
    
    <p>&nbsp;</p>
    <ul id="addmenu">
    	<?php $this->_tag_stack[] = array('rights', array('right' => 'classes_create')); $_block_repeat=true;smarty_block_rights($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?><li><a href="<?php echo $this->_tpl_vars['site_admin']; ?>
m=inventory&s=classes.php&uri=create">添加一个新的负责人</a></li><?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_rights($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?>
        <?php if (0): ?><?php $this->_tag_stack[] = array('rights', array('right' => 'classes_create|classes_modify|classes_remove')); $_block_repeat=true;smarty_block_rights($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?><li><a href="<?php echo $this->_tpl_vars['site_admin']; ?>
m=inventory&s=classes.php&uri=recaches">更新产品分类的显示顺序</a></li><?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_rights($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?><?php endif; ?>
    </ul>
</div>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "admin/bottom.php", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
</body>
</html>